import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;

public class lianxi6 {
    public static void main(String[] args) {
        FileInputStream fou=null;
        try {
            File file = new File("C:\\1.1\\123.jpeg");
             fou = new FileInputStream(file);
            byte[] bytes = new byte[(int) (file.length() / 5)];
            int read = 0;
            int num = 0;
            while ((read = fou.read(bytes)) != -1) {
                num++;
                FileOutputStream fileOutputStream = new FileOutputStream("C:\\1.1\\123" + num + ".jpeg");
                fileOutputStream.write(bytes,0,read);
                fileOutputStream.close();
            }


        }catch (Exception e){
            e.printStackTrace();
        }finally {

        }

    }
}
